﻿package com.tudou.newPlayer
{
    import flash.events.*;

    public class PlayerEvent extends Event
    {
        public var data:Object;
        public static const CHANGE_URL:String = "changeURL";
        public static const CHANGE_VIDEO_STATUS:String = "changeVideoStatus";
        public static const UPDATE:String = "update";
        public static const RECEIVE_METADATA:String = "receiveMetadata";
        public static const STREAM_BUFFER_EMPTY:String = "streamBufferEmpty";
        public static const CHANGE_STREAM:String = "changeStream";
        public static const SKIP_TAIL:String = "skipTail";
        public static const STREAM_BUFFER_FULL:String = "streamBufferFull";
        public static const SKIP_HEAD:String = "skipHead";

        public function PlayerEvent(param1:String, param2:Boolean = false, param3:Boolean = true, param4 = null)
        {
            super(param1, param2, param3);
            this.data = param4;
            return;
        }// end function

    }
}
